<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>基本消息窗 - jQuery EasyUI 演示</title>
	<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
	<link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="../../themes/icon.css">
	<link rel="stylesheet" type="text/css" href="../demo.css">
	<script type="text/javascript" src="../../jquery.min.js"></script>
	<script type="text/javascript" src="../../jquery.easyui.min.js"></script>
	<script type="text/javascript" src="../../locale/easyui-lang-zh_CN.js"></script>
</head>
<body>
	<h2 title="Basic Messager">基本消息窗</h2>
	<p title="Click on each button to see a distinct message box.">　　点击以下每个按钮即可查看形式各异的消息窗。</p>
	<div style="margin:20px 0;">
		<a href="#" class="easyui-linkbutton" onclick="show()" title="Show">呈现</a>
		<a href="#" class="easyui-linkbutton" onclick="slide()" title="Slide">滑动</a>
		<a href="#" class="easyui-linkbutton" onclick="fade()" title="Fade">渐变（淡入淡出）</a>
		<a href="#" class="easyui-linkbutton" onclick="progress()" title="Progress">进度条</a>
	</div>
	<script type="text/javascript">
		function show(){
			$.messager.show({
				title:'我的标题',
				msg:'本消息将于 4 秒后关闭（显示）。',
				showType:'show'
			});
		}
		function slide(){
			$.messager.show({
				title:'我的标题',
				msg:'本消息将于 5 秒后关闭（滑动）。',
				timeout:5000,
				showType:'slide'
			});
		}
		function fade(){
			$.messager.show({
				title:'我的标题',
				msg:'本消息永不关闭（渐变）！',
				timeout:0,
				showType:'fade'
			});
		}
		function progress(){
			var win = $.messager.progress({
				title:'请稍候',
				msg:'正在加载数据...'
			});
			setTimeout(function(){
				$.messager.progress('close');
			},5000)
		}
	</script>
</body>
</html>